--举盾回击
local judunhuiji = fk.CreateSkill {
    name = "mcdh_judunhuiji"
}


judunhuiji:addEffect(fk.CardUseFinished,{
    can_trigger = function (self, event, target, player, data)
        local room = player.room
        if player:hasSkill(self) and target == player and data.responseToEvent and  player:usedSkillTimes(self.name, Player.HistoryTurn) == 0 then
            return room:getCardArea(data.responseToEvent.card) == Card.Processing and (data.responseToEvent.card.trueName == "slash" or (data.responseToEvent.card:isCommonTrick() and #TargetGroup:getRealTargets(data.responseToEvent.tos) == 1))
        end
    end,
    on_use = function(self, event, target, player, data)
        player.room:obtainCard(player, data.responseToEvent.card, true, fk.ReasonJustMove)
    end,
})

Fk:loadTranslationTable{
    ["mcdh_judunhuiji"] = "盾反",
    [":mcdh_judunhuiji"] = "『举盾回击』<br>每回合一次，当你使用牌响应【杀】或仅指定唯一目标的普通锦囊牌后，你可以获得被响应的牌。",
}


return judunhuiji